package net.xinqushi.design.proxy;

/**
 *  创建一个默认的工厂，这里使用cglib
 */
public class DefaultProxyFactory implements ProxyFactory {

    private ProxyFactory defaultProxyFactory;

    public DefaultProxyFactory(Object target){
        defaultProxyFactory = new CglibProxyFactory(target);
    }
    @Override
    public Object getProxyInstance() {
        return defaultProxyFactory.getProxyInstance();
    }
}
